<?php

require_once '../include/common.inc.php';
if (!checkAdmin()) {
    header("LOCATION:index.php");
    exit;
}


$filename = 'customer.xls';

	header("Content-Type: application/vnd.ms-excel; charset=UTF-8");
	//header("Content-type:application/vnd.ms-excel");
	header("Accept-Ranges:bytes");
	header("Content-Disposition:attachment;filename=".preg_replace("/<[^>]+>/","",$file_name));

$s = "Name\tContact\tCity\tCountry\tEmail\tUsername\tPassword\tStatus\tFrom\n";
echo $s;

?>